package cn.klaw.granter;

import cn.klaw.base.ActionResult;
import cn.klaw.exception.LoginException;
import cn.klaw.model.logout.LogoutResultModel;

import java.util.Map;


/**
 *
 *
 *
 */
public interface TokenGranter {

    ActionResult granter(Map<String, String> loginParameters) throws LoginException;


    ActionResult<LogoutResultModel> logout();

    boolean requiresAuthentication();

}
